//
//  LKdeseaseDescCell.m
//  QuickCure
//
//  Created by 胡不归是大虾 on 9/12/16.
//  Copyright © 2016 haoge. All rights reserved.
//

#import "LKdeseaseDescCell.h"
@interface LKdeseaseDescCell( )<UITextViewDelegate>

@property(nonatomic,weak) UILabel* titleLabel;
@property(nonatomic,weak) UITextView* descTextView;



@end
@implementation LKdeseaseDescCell

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        [self setUpMyUI];
    }
    return self;
}

-(void)setUpMyUI
{
    UILabel* titleLabel = [[UILabel alloc] init];
    self.titleLabel = titleLabel;
    [self.contentView addSubview:titleLabel];
    //设置约束
    [titleLabel makeConstraints:^(MASConstraintMaker *make) {
        make.top.left.equalTo(self.contentView).offset(15);
    }];
    //设置内容
    titleLabel.text = @"病症描述:";
    UITextView* descTextView = [[UITextView alloc] init];
    self.descTextView = descTextView ;
    [self.contentView addSubview:descTextView];
//   //设置代理
//    descTextView.delegate = self;
    //设置约束
    [descTextView makeConstraints:^(MASConstraintMaker *make) {
        make.leading.equalTo(self.titleLabel.leading);
        make.right.bottom.equalTo(self.contentView).offset(-15);
        make.top.equalTo(self.titleLabel.bottom).offset(15);
    }];
    descTextView.backgroundColor = [UIColor lightGrayColor];
}



@end
